package com.cyzy.service;

import com.cyzy.pojo.TrainOrder;
import com.cyzy.pojo.UserOrder;
import java.util.List;


public interface OrderService {

    //查找订单列表
    List<UserOrder> selectOrder(long userId);

    //取消订单
    int cancelOrder(TrainOrder trainOrder);

    //删除订单
    int deleteOrder(TrainOrder trainOrder);

    //查询当前订单信息
    TrainOrder selectOrderById(long orderId);

    //余额支付
    int payBalance(TrainOrder trainOrder);


}
